package org.jeecg.modules.demo.customer.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: yx_customer
 * @Author: jeecg-boot
 * @Date:   2021-12-08
 * @Version: V1.0
 */
@Data
@TableName("yx_customer")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="yx_customer对象", description="yx_customer")
public class YxCustomer implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private java.lang.String id;
	/**往来单位名称*/
	@Excel(name = "往来单位名称", width = 15)
    @ApiModelProperty(value = "往来单位名称")
    private java.lang.String customerName;
	/**性质*/
	@Excel(name = "性质", width = 15)
    @ApiModelProperty(value = "性质")
    @Dict(dicCode = "customer_type")
    private java.lang.Integer customerType;
	/**结算客户*/
	@Excel(name = "结算客户", width = 15)
    @ApiModelProperty(value = "结算客户")
    private java.lang.String clearingCustomer;
	/**往来单位编码*/
	@Excel(name = "往来单位编码", width = 15)
    @ApiModelProperty(value = "往来单位编码")
    private java.lang.String customerCode;
	/**停用*/
	@Excel(name = "停用", width = 15)
    @ApiModelProperty(value = "停用")
    @Dict(dicCode = "tenant_status")
    private java.lang.Integer deadStatus;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    @TableLogic
	private java.lang.Integer shanchu;
    /**
     * 租户ID
     */
    private Integer tenantId;
}
